package com.liy.redisson.controller;

import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author ly
 * @date 2022/11/10 15:55
 *
 * 获取ip的归属地
 */

@RestController
public class Ip {


    @PostMapping("/test")
    public String test(Integer id,String name){
        System.out.println("id => "+id);
        System.out.println("name => "+name);
        if (id > 0){
            return "success " + name;
        }else{
            return "fail";
        }
    }

}
